//
//  TTCertificateChooseModel.h
//  TaoTuo
//
//  Created by apple on 2020/11/19.
//  Copyright © 2020 刘广. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TTCertificateItemModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface TTCertificateChooseModel : NSObject

@property (nonatomic, copy)  NSString *sectionTitle;
/// 证书数据
@property (nonatomic, strong) NSArray<TTCertificateItemModel *> *dataArray;
/// 按钮数据
@property (nonatomic, strong) NSArray<NSString *> *btnTitlesArray;
/// 是否能多选
@property (nonatomic, assign) BOOL allowMulti;
/// 是否能取消选中
@property (nonatomic, assign) BOOL allowCancelSelect;

/// item 的最小尺寸
@property (nonatomic, assign) CGSize minSize;

/// 这个区有没有选中的
@property (nonatomic, assign) BOOL hasSelected;
/// 选中了某几个item
@property (nonatomic, copy) void(^selectedItemBlock)(NSArray<TTCertificateItemModel *> *selectedItemArray);
/// 选中了哪个按钮
@property (nonatomic, copy) void(^selectedBtnBlock)(NSString *title, NSInteger index);
/// 选中按钮的标题
//@property (nonatomic, copy)  NSString *selectedBtnTitle;
@property (nonatomic, strong) NSArray *selectedBtnTitleArray;

+ (instancetype)setModelWithSectionTitle:(NSString *)sectionTitle allowMulti:(BOOL)allowMulti allowCancelSelect:(BOOL)allowCancelSelect dataArray:(NSArray <TTCertificateItemModel *>*)dataArray;

+ (instancetype)setModelWithSectionTitle:(NSString *)sectionTitle allowMulti:(BOOL)allowMulti allowCancelSelect:(BOOL)allowCancelSelect dataArray:(NSArray <TTCertificateItemModel *>*)dataArray minSize:(CGSize)minSize;

@end

NS_ASSUME_NONNULL_END
